eat humble pie
(North American English also eat crow)
to say and show that you are sorry for a mistake that you made